﻿using TeaLight.Core.BL.Entities;

namespace TeaLight.Core.DAL
{
    public partial class SessionSpeakerRepository
        : DataManagerBase<SessionSpeaker>
    {
        public static Session GetSession(SessionSpeaker sessionSpeaker)
        {
            return SessionRepository.GetById(sessionSpeaker.SessionId);
        }

        public static Speaker GetSpeaker(SessionSpeaker sessionSpeaker)
        {
            return SpeakerRepository.GetById(sessionSpeaker.SpeakerId);
        }

    }
}
